package org.framework.define.bean.result.stream;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.framework.core.override.ByteOutputStream;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class StreamData extends Header {
	@JsonProperty
	protected ByteOutputStream info;		//数据流
	
	public StreamData() {}
	
	public StreamData(String fileName) {
		super(fileName);
	}
	
	public StreamData(ByteOutputStream baos) {
		this(null, baos);
	}
	
	public StreamData(String fileName, ByteOutputStream info) {
		super(fileName);
		this.info = info;
	}
	
	public ByteOutputStream getInfo() {
		return info;
	}

	public void setInfo(ByteOutputStream info) {
		this.info = info;
	}
}
